package com.ybwh.springboot1;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 消息系统移动端接口启动类
 *
 */
@EnableTransactionManagement
@EnableAspectJAutoProxy(exposeProxy = true)
@SpringBootApplication
public class SpringBoot1MybatisApplication {
	private static final Logger logger = LoggerFactory.getLogger(SpringBoot1MybatisApplication.class);

	public static void main(String[] args) {

		ConfigurableApplicationContext context = SpringApplication.run(SpringBoot1MybatisApplication.class, args);

		logger.error("----------------error-----------------");
		logger.warn("----------------warn-----------------");
		logger.info("----------------info-----------------");
		logger.debug("----------------debug-----------------");
		logger.trace("----------------trace-----------------");
		System.out.println();

		String configPath = context.getEnvironment().getProperty("spring.config.location");
		String tomcatPort = context.getEnvironment().getProperty("server.port");
		System.out.println(configPath + "," + tomcatPort);

	}


}
